﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BaccaratRally.DataKernel.Entity;
using BaccaratRally.DataKernel.Service;

namespace BaccaratRally.Service.Api
{
    public partial class Online : System.Web.UI.Page
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            String accountName = Request.QueryString["AccountName"];
            String accountPos = Request.QueryString["AccountPos"];
            Byte online = Byte.Parse(Request.QueryString["Online"]);

            AccountService aservice = ServiceFactory.CreateService<AccountService>();
            Response.Write(aservice.CheckOnline(accountName, accountPos, online));
        }
    }
}